package ua.kharkov.knure.pereverziev.diploma.db.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * UserStatus entity.
 * 
 * @author A.Pereverziev
 * 
 */
@Entity(name = "user_statuses")
public class UserStatus extends HasId {

	private static final long serialVersionUID = 7484193717523609781L;

	public UserStatus() {
	}

	public UserStatus(final String status) {
		this.status = status;
	}

	@Id
	@Column(name = "status_id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long id;
	private String status;
	private Float saving;
	@Column(name = "min_distance")
	private Integer minDistance;

	@Override
	public String toString() {
		return status;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public void setId(final Long id) {
		this.id = id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(final String status) {
		this.status = status;
	}

	public Float getSaving() {
		return saving;
	}

	public void setSaving(final Float saving) {
		this.saving = saving;
	}

	public Integer getMinDistance() {
		return minDistance;
	}

	public void setMinDistance(final Integer minDistance) {
		this.minDistance = minDistance;
	}

}
